<?php
return array(
	//load language
	'sourceLanguage'=>'en-GB', //vi-VN,en-GB
	'language'=>'en', //vi,en
	// preloading 'log' component
	'preload'=>array('log'),

	
	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.controllers.*',
	),
			
	'components'=>array(
		//load database mysql
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=myyii2114',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
			'tablePrefix' => 'adc_',
		),
		//url format
		// log error warning
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
				// uncomment the following to show log messages on web pages
				
				/* array(
					'class'=>'CWebLogRoute',
				), */
				
			),
		),
		// session
		'session' => array(
           'class' => 'CDbHttpSession',
            'connectionID' => 'db',
            'sessionTableName'  =>  'adc_session',
            'autoCreateSessionTable'   =>  true,
            //Extension properties
        //    'compareIpAddress'=>true,
        //    'compareUserAgent'=>true,
        //    'compareIpBlocks'=>0
            ),
		//
	),
	'params'=>require(dirname(__FILE__).'/params.php'),
);